package com.star.warmwinter.http.base;

import com.google.gson.annotations.SerializedName;

/**
 * Author: blackbai11
 * Date: 2017/7/19 16:31
 * Description: BaseEntity
 */

public class BaseEntity<T> {
    @SerializedName("code") //与服务器一致即可解析（用于本地字段与服务器不一致的情况）
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
